import * as types from '../constant/action-types'

const init = [
  {'id': 1, 'name': 'test1'},
  {'id': 2, 'name': 'test2'},
  {'id': 3, 'name': 'test3'},
  {'id': 4, 'name': 'test4'},
  {'id': 5, 'name': 'test51'},
  {'id': 6, 'name': 'aa'},
  {'id': 7, 'name': 'test1222'}
]
export default (state = init, action) => {
  switch (action.type) {
    case types.REFRESH_TAGS:
      return action.data
    default:
      return state
  }
}
